package com.zjff.myshop.mapper;

import com.zjff.myshop.entity.Cart;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface CartMapper {

    int insert(Cart cart);

    int deleteByPrimaryKey(Integer id);

    int deleteByUserId(Integer userId);

    int deleteBatch(Integer[] ids);

    int update(Cart cart);

    int updateIsCheckedAllByUserId(Boolean isChecked, Integer userId);

    Cart selectByPrimaryKey(Integer id);

    List<HashMap<String, Object>> selectVOList(HashMap map);

    Cart selectByUserIdAndGoodsId(Integer userId, Integer goodsId);

    int countByUserId(Integer userId);

}